package com.dycong.common.reflect.aop.anno;

import com.dycong.common.reflect.aop.Greeting;
import com.dycong.common.reflect.aop.annotation.Around.Tag;
import org.springframework.stereotype.Component;

@Component
public class GreetingImplNew implements Greeting {

    @Tag
    @Override
    public void sayHello(String name) {
        System.out.println("Hello! " + name);
    }

    @Tag
    @Override
    public void sayLove(String name,String location){
        System.out.println("I love " + name+" in "+location);
    }
}
